Use Redim x[n] (with the square brackets) only in Crystal syntax, and Redim x(n) (with the round brackets) only in Basic syntax.
Re
The following example is applicable to Basic syntax:
Dim x() As String
'Initialize first three array elements
x = Array ("a", "bb", "ccc")
'Re
'x is now equal to Array ("", "", "", "")
Redim x(4)
'x is now equal to Array ("", "", "", "dddd")
x(4) = "dddd"
formula = x(4)
When an array is re
Array data types (Basic syntax)
Using array variables (Basic syntax)
Re
The following example is applicable to Crystal syntax:
Local StringVar array x:= ["a", "bb", "ccc"];
// resize the array to size 4; old values are ignored
// and filled with default values of empty strings
Redim x [4];
x [4] := "dddd"; // only x[4] is initialized
When an array is re
Array data types (Crystal syntax)
Using array variables (Crystal syntax)
| Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com |